package com.fulihui.wgj.consumer.service;

import com.fulihui.weixinsdk.result.mass.MassSendResult;
import com.fulihui.wgj.consumer.entity.CustomerNewsMsg;
import com.fulihui.wgj.consumer.result.BatchSendResult;
import com.fulihui.wgj.facade.dto.TemplateMsgDTO;
import com.fulihui.wgj.facade.msg.MassMsg;
import com.fulihui.wgj.facade.msg.Wx48HMsg;

/**
 * @author: LiuJie
 * @version: 2018/7/2 19:01
 * @description:
 */
public interface WxMsgService {
    /**
     * 回复文本消息
     *
     * @param appId      公众号id
     * @param openId     openid
     * @param contentMsg 消息内容
     */
    void sendCustomerTextMsg(String appId, String openId, String contentMsg);

    /**
     * 发送 48H 图文客服消息 msg
     * @param customerNewsMsg
     */
    BatchSendResult sendCustomerNewsMsg(CustomerNewsMsg customerNewsMsg);

    /**
     * 发送 客服 mpnews 消息
     * @param appid
     * @param openId
     * @param mediaId 素材id
     */
    void sendConsumerMpNewsMsg(String appid,String openId,String mediaId);
    /**
     * 发送 客服 img 消息
     * @param appid
     * @param openId
     * @param mediaId 素材id
     */
    void sendConsumerImgMsg(String appid,String openId,String mediaId);

    /**
     * 发送模板消息
     * @return
     */
    boolean sendTemplateMsg(String appid,String openid, TemplateMsgDTO templateMsgDTO);

    /**
     * 群发消息
     * @param msg
     */
    MassSendResult sendMassMsg(MassMsg msg);
}
